import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
//引用
const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'addLogin',
        component: () => import("../vitew/addLogin.vue")
    },
    {
        path: '/showLogin/:name/:pwd',
        name: 'showLogin',
        component: () => import("../vitew/showLogin.vue")
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes
})
//导出
export default router;